package com.example.mall.goods.core.dao;

import com.example.mall.goods.api.entity.MallOrderItem;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MallOrderItemMapper {

    List<MallOrderItem> selectByOrderId(Long orderId);

    List<MallOrderItem> selectByOrderIds(@Param("orderIds") List<Long> orderIds);

    int insertBatch(@Param("orderItems") List<MallOrderItem> orderItems);

}